package com.ggk911.pharmacy_system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 出库单
 *
 * @author ggk-911
 * @version 1.0 2023/4/13 12:34
 */
@TableName("outbound_delivery")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OutboundDelivery {

    @TableId(value = "outbound_delivery_id", type = IdType.AUTO)
    private Integer outboundDeliveryId;

    private Integer drugInfoId;

    private Integer outboundDeliveryNum;

    private String outboundDeliveryRemark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outboundDeliveryCreatTime;

    @TableField(exist = false)
    private DrugInfo drugInfo;

}
